<table id="anexo" align="left" cellpadding="5" cellspacing="5" width="100%" border="0">
<tr><td><strong>Descri&ccedil;&atilde;o do Processo:</strong><br /><br /></td></tr>

<?php 
require_once("../entidades/fluxoProcesso.php");
if ($quantFluxo > 0) { imprimiItens ($fluxoProcesso,0,"", false); } 
?>
<tr align="justify"><td><strong>Insumos do Processo:</strong></td></tr>

<tr><td>

<table cellpadding="2" cellspacing="2" width="100%" border="1" align="left">
<tr><td align="justify">Insumos</td><td align="justify">Classifica&ccedil;&atilde;o da Origem</td></tr>

<?php
while($linha = mysql_fetch_array($insumosProc)) 
{
	$insumo = htmlspecialchars($linha['insumo']);
 	$tipo = $linha['tipo'];
	
   	if ($tipo == 1) $valor = "End&oacute;gena";
    if ($tipo == 2) $valor = "Ex&oacute;gena";

	echo "<tr><td style=\"text-align:center\"> <font color=\"#999900\">$insumo</font></td><td style=\"text-align:center\"><font color=\"#999900\">$valor</font></td></tr>";
}
?>
</table>
</td></tr>

<tr><td><strong>Resultados finais do processo: </strong><?php echo $resultadofinal; ?></td></tr>
<tr><td><strong>Instrumentos Legais:</strong></td></tr>

<tr><td>

<table cellpadding="2" cellspacing="2" width="100%" border="1" align="left">
<tr style="text-align:justify">
<td align="justify">Rela&ccedil;&otilde;es dos Principais</td>
<td align="justify">Status</td>
</tr>
<?php
while($linha = mysql_fetch_array($legislacaoProc)) {
	 
	$justificar = htmlspecialchars($linha['justificar']);
	$legislacao = htmlspecialchars($linha['legislacao']);
	$status = $linha['status'];
	
	if ($justificar != "") { $valor = "<font color=\"#999900\" >N&atilde;o Aplic&aacute;vel</font> ($justificar)"; } else $valor = "<font color=\"#999900\">Aplic&aacute;vel</font>";

	echo "<tr><td style=\"text-align:center\"><font color=\"#999900\" >$legislacao</font></td><td style=\"text-align:center\">$valor</td></tr>";	
}	

?>
</table>

</td></tr>

<tr><td><strong>Necessidade de Instrumentos Legais:</strong> <?php echo "<font color=\"#999900\">".$normaslegislacao."</font>"; ?></td></tr>
<tr><td><strong>Tempo m&eacute;dio para finaliza&ccedil;&atilde;o do processo (dias): </strong> <?php echo "<font color=\"#999900\">".$tempomedio."</font>"; ?></td></tr>
<tr><td><strong>Fonte da informa&ccedil;&atilde;o: </strong><?php echo "<font color=\"#999900\">".$fonteinf."</font>"; ?></td></tr>
<tr><td><strong>Percentual dos processos finalizados com alcance dos resultados: </strong><?php echo "<font color=\"#999900\">".$percentualfinalizados." % ".$juspercentualfinal."</font>"; ?></td></tr>
<tr> <td><strong>Processos vinculados: </strong><?php echo "<font color=\"#999900\">".$processosvinculado."</font>"; ?></td></tr>
<tr><td><strong>Observa&ccedil;&otilde;es: </strong> <?php echo "<font color=\"#999900\">".$justempomedio."</font>"; ?></td></tr>
</table> 
